package com.kmust.dream.wanderingdream.product.service;

import com.kmust.dream.wanderingdream.comm.pojo.ResultBean;
import com.kmust.dream.wanderingdream.product.entity.ProductSku;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kmust.dream.wanderingdream.product.vo.GetSkuVO;

/**
 *
 */
public interface ProductSkuService extends IService<ProductSku> {

    ResultBean getAllSku();

    ResultBean addSku(ProductSku productSku);

    ResultBean updateSku(ProductSku productSku);

    ResultBean deleteSku(Integer skuId);

    ResultBean getSkuVersion(Integer skuId);

    ResultBean updateVersionAndStock(ProductSku productSku, Integer orderNumber);

    ResultBean getSku(GetSkuVO getSkuVO);

    ResultBean getSkuById(Integer skuId);

    ResultBean getSkuStock(Integer skuId);

    ResultBean getAllSkuByProductId(Integer productId);
}
